/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * FinalPage.java
 *
 * Created on Jan 11, 2013, 9:06:49 PM
 */
package gui;

import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;

/**
 *
 * @author Lydia
 */
public class FinalPage extends javax.swing.JFrame {
    
    /** Creates new form FinalPage */
    public FinalPage() {
        initComponents();
        this.setTitle("Final Page");
        DefaultTableModel model = (DefaultTableModel) jTable6.getModel();
        for (int i=0; i<GUIMain.m.doneInstructions.size(); i++) {
            Object[] data = {new Integer(0),new Integer(0),new Integer(0),new Integer(0),new Integer(0),new Integer(0)};
            model.addRow(data);
            jTable6.getModel().setValueAt(GUIMain.m.doneInstructions.get(i).inst, i, 0);
            jTable6.getModel().setValueAt(GUIMain.m.doneInstructions.get(i).fetch, i, 1);
            jTable6.getModel().setValueAt(GUIMain.m.doneInstructions.get(i).issue, i, 2);
            jTable6.getModel().setValueAt(GUIMain.m.doneInstructions.get(i).execute, i, 3);
            jTable6.getModel().setValueAt(GUIMain.m.doneInstructions.get(i).write, i, 4);
            jTable6.getModel().setValueAt(GUIMain.m.doneInstructions.get(i).commit, i, 5);
        }
        R0.setText("R0: " + GUIMain.m.register.read("R0"));
        R1.setText("R1: " + GUIMain.m.register.read("R1"));
        R2.setText("R2: " + GUIMain.m.register.read("R2"));
        R3.setText("R3: " + GUIMain.m.register.read("R3"));
        R4.setText("R4: " + GUIMain.m.register.read("R4"));
        R5.setText("R5: " + GUIMain.m.register.read("R5"));
        R6.setText("R6: " + GUIMain.m.register.read("R6"));
        R7.setText("R7: " + GUIMain.m.register.read("R7"));
        
        DefaultTableModel model2 = (DefaultTableModel) jTable1.getModel();
        for (int j=0; j<GUIMain.m.Datam.memory.size();j++) {
            Object[] data = {new Object(), new Object()};
            model2.addRow(data);
            jTable1.getModel().setValueAt(j, j, 0);
            jTable1.getModel().setValueAt(GUIMain.m.Datam.memory.get(j), j, 1);
        }
        
        float totalCycles = GUIMain.m.doneInstructions.get(GUIMain.m.doneInstructions.size()-1).commit;
        noOfCycles.setText(totalCycles + "");
        IPC.setText((float)GUIMain.m.doneInstructions.size()/totalCycles + "");
        switch (GUIMain.m.noDataCaches) {
            case 1:
                jLabel3.setVisible(true);
                jLabel4.setVisible(false);
                jLabel5.setVisible(false);
                L1D.setVisible(true);
                L2D.setVisible(false);
                L3D.setVisible(false);
                L1D.setText((float)GUIMain.m.Datac.getHitRate() + "");
            break;
            case 2:
                jLabel3.setVisible(true);
                jLabel4.setVisible(true);
                jLabel5.setVisible(false);
                L1D.setVisible(true);
                L2D.setVisible(true);
                L3D.setVisible(false);
                L1D.setText((float)GUIMain.m.Datac.getHitRate() + "");
                L2D.setText((float)GUIMain.m.Data2c.getHitRate() + "");
            break;
            case 3:
                jLabel3.setVisible(true);
                jLabel4.setVisible(true);
                jLabel5.setVisible(true);
                L1D.setVisible(true);
                L2D.setVisible(true);
                L3D.setVisible(true);
                L1D.setText((float)GUIMain.m.Datac.getHitRate() + "");
                L2D.setText((float)GUIMain.m.Data2c.getHitRate() + "");
                L3D.setText((float)GUIMain.m.Data3c.getHitRate() + "");
            break;
            default:
                jLabel3.setVisible(true);
                jLabel4.setVisible(false);
                jLabel5.setVisible(false);
                L1D.setVisible(true);
                L2D.setVisible(false);
                L3D.setVisible(false);
                L1D.setText((float)GUIMain.m.Datac.getHitRate() + "");
            break;
        }
        
        switch (GUIMain.m.noInstCache) {
            case 1:
                jLabel6.setVisible(true);
                jLabel7.setVisible(false);
                jLabel8.setVisible(false);
                L1I.setVisible(true);
                L2I.setVisible(false);
                L3I.setVisible(false);
                L1I.setText((float)GUIMain.m.InstCache.getHitRate() + "");
            break;
            case 2:
                jLabel6.setVisible(true);
                jLabel7.setVisible(true);
                jLabel8.setVisible(false);
                L1I.setVisible(true);
                L2I.setVisible(true);
                L3I.setVisible(false);
                L1I.setText((float)GUIMain.m.InstCache.getHitRate() + "");
                L2I.setText((float)GUIMain.m.Inst2cache.getHitRate() + "");
            break;
            case 3:
                jLabel6.setVisible(true);
                jLabel7.setVisible(true);
                jLabel8.setVisible(true);
                L1I.setVisible(true);
                L2I.setVisible(true);
                L3I.setVisible(true);
                L1I.setText((float)GUIMain.m.InstCache.getHitRate() + "");
                L2I.setText((float)GUIMain.m.Inst2cache.getHitRate() + "");
                L3I.setText((float)GUIMain.m.Inst3cache.getHitRate() + "");
            break;
            default:
                jLabel6.setVisible(true);
                jLabel7.setVisible(false);
                jLabel8.setVisible(false);
                L1I.setVisible(true);
                L2I.setVisible(false);
                L3I.setVisible(false);
                L1I.setText((float)GUIMain.m.InstCache.getHitRate() + "");
            break;
        }
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollPane5 = new javax.swing.JScrollPane();
        jTable6 = new javax.swing.JTable();
        Inst = new javax.swing.JLabel();
        Main = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        jPanel1 = new javax.swing.JPanel();
        R0 = new javax.swing.JLabel();
        R1 = new javax.swing.JLabel();
        R2 = new javax.swing.JLabel();
        R3 = new javax.swing.JLabel();
        R4 = new javax.swing.JLabel();
        R5 = new javax.swing.JLabel();
        R6 = new javax.swing.JLabel();
        R7 = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        L3I = new javax.swing.JLabel();
        L2I = new javax.swing.JLabel();
        L1I = new javax.swing.JLabel();
        L3D = new javax.swing.JLabel();
        L2D = new javax.swing.JLabel();
        L1D = new javax.swing.JLabel();
        IPC = new javax.swing.JLabel();
        noOfCycles = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Final Status");
        setBounds(new java.awt.Rectangle(200, 0, 0, 0));

        jTable6.setBackground(new java.awt.Color(204, 204, 204));
        jTable6.setFont(new java.awt.Font("Tahoma", 3, 11)); // NOI18N
        jTable6.setForeground(new java.awt.Color(152, 0, 0));
        jTable6.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Instruction", "Fetched", "Issued", "Executed", "Written", "Comitted"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jTable6.setSelectionBackground(new java.awt.Color(0, 204, 51));
        jScrollPane5.setViewportView(jTable6);

        Inst.setFont(new java.awt.Font("Agency FB", 1, 18)); // NOI18N
        Inst.setForeground(new java.awt.Color(0, 153, 153));
        Inst.setText("Instruction Status");

        Main.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Data Memory", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Agency FB", 1, 18), new java.awt.Color(0, 153, 153))); // NOI18N

        jTable1.setBackground(new java.awt.Color(204, 204, 204));
        jTable1.setFont(new java.awt.Font("Tahoma", 3, 11)); // NOI18N
        jTable1.setForeground(new java.awt.Color(152, 0, 0));
        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Address", "Content"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Integer.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jTable1.setSelectionBackground(new java.awt.Color(0, 204, 51));
        jScrollPane1.setViewportView(jTable1);

        javax.swing.GroupLayout MainLayout = new javax.swing.GroupLayout(Main);
        Main.setLayout(MainLayout);
        MainLayout.setHorizontalGroup(
            MainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(MainLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(29, Short.MAX_VALUE))
        );
        MainLayout.setVerticalGroup(
            MainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(MainLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 428, Short.MAX_VALUE))
        );

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Registers", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Agency FB", 1, 18), new java.awt.Color(0, 153, 153))); // NOI18N

        R0.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        R0.setForeground(new java.awt.Color(152, 0, 0));
        R0.setText("R0: 0");

        R1.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        R1.setForeground(new java.awt.Color(152, 0, 0));
        R1.setText("R1: 0");

        R2.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        R2.setForeground(new java.awt.Color(152, 0, 0));
        R2.setText("R2: 0");

        R3.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        R3.setForeground(new java.awt.Color(152, 0, 0));
        R3.setText("R3: 0");

        R4.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        R4.setForeground(new java.awt.Color(152, 0, 0));
        R4.setText("R4: 0");

        R5.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        R5.setForeground(new java.awt.Color(152, 0, 0));
        R5.setText("R5: 0");

        R6.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        R6.setForeground(new java.awt.Color(152, 0, 0));
        R6.setText("R6: 0");

        R7.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        R7.setForeground(new java.awt.Color(152, 0, 0));
        R7.setText("R7: 0");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(62, 62, 62)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(R0)
                    .addComponent(R1)
                    .addComponent(R2))
                .addGap(28, 28, 28)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(R5)
                    .addComponent(R4)
                    .addComponent(R3))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(R6)
                    .addComponent(R7))
                .addGap(65, 65, 65))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(R0)
                            .addComponent(R3))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(R1)
                            .addComponent(R4))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(R2)
                            .addComponent(R5)))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(22, 22, 22)
                        .addComponent(R6)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(R7)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addGap(20, 20, 20))
        );

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Output Info", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Agency FB", 1, 18), new java.awt.Color(0, 153, 153))); // NOI18N

        jLabel1.setFont(new java.awt.Font("Arial", 3, 12)); // NOI18N
        jLabel1.setForeground(new java.awt.Color(152, 0, 0));
        jLabel1.setText("Total no. of cyles:");

        jLabel2.setFont(new java.awt.Font("Arial", 3, 12)); // NOI18N
        jLabel2.setForeground(new java.awt.Color(152, 0, 0));
        jLabel2.setText("IPC:");

        jLabel3.setFont(new java.awt.Font("Arial", 3, 12)); // NOI18N
        jLabel3.setForeground(new java.awt.Color(152, 0, 0));
        jLabel3.setText("Hit ratio of L1 data cache:");

        jLabel4.setFont(new java.awt.Font("Arial", 3, 12)); // NOI18N
        jLabel4.setForeground(new java.awt.Color(152, 0, 0));
        jLabel4.setText("Hit ratio of L2 data cache:");

        jLabel5.setFont(new java.awt.Font("Arial", 3, 12)); // NOI18N
        jLabel5.setForeground(new java.awt.Color(152, 0, 0));
        jLabel5.setText("Hit ratio of L3 data cache:");

        jLabel6.setFont(new java.awt.Font("Arial", 3, 12)); // NOI18N
        jLabel6.setForeground(new java.awt.Color(152, 0, 0));
        jLabel6.setText("Hit ratio of L1 instruction cache:");

        jLabel7.setFont(new java.awt.Font("Arial", 3, 12)); // NOI18N
        jLabel7.setForeground(new java.awt.Color(152, 0, 0));
        jLabel7.setText("Hit ratio of L2 instruction cache:");

        jLabel8.setFont(new java.awt.Font("Arial", 3, 12)); // NOI18N
        jLabel8.setForeground(new java.awt.Color(152, 0, 0));
        jLabel8.setText("Hit ratio of L3 instruction cache:");

        L3I.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        L3I.setForeground(new java.awt.Color(0, 0, 153));

        L2I.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        L2I.setForeground(new java.awt.Color(0, 0, 153));

        L1I.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        L1I.setForeground(new java.awt.Color(0, 0, 153));

        L3D.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        L3D.setForeground(new java.awt.Color(0, 0, 153));

        L2D.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        L2D.setForeground(new java.awt.Color(0, 0, 153));

        L1D.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        L1D.setForeground(new java.awt.Color(0, 0, 153));

        IPC.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        IPC.setForeground(new java.awt.Color(0, 0, 153));

        noOfCycles.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        noOfCycles.setForeground(new java.awt.Color(0, 0, 153));

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel8)
                    .addComponent(jLabel7)
                    .addComponent(jLabel6)
                    .addComponent(jLabel5)
                    .addComponent(jLabel4)
                    .addComponent(jLabel3)
                    .addComponent(jLabel2)
                    .addComponent(jLabel1))
                .addGap(41, 41, 41)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(noOfCycles)
                    .addComponent(IPC)
                    .addComponent(L1D)
                    .addComponent(L2D)
                    .addComponent(L3D)
                    .addComponent(L1I)
                    .addComponent(L2I)
                    .addComponent(L3I))
                .addContainerGap(46, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(noOfCycles))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(IPC))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3)
                    .addComponent(L1D))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel4)
                    .addComponent(L2D))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(L3D))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel6)
                    .addComponent(L1I))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel7)
                    .addComponent(L2I))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel8)
                    .addComponent(L3I))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(Inst)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(Main, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(152, 152, 152)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(48, 48, 48))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 706, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(Inst)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(27, 27, 27)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(Main, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(50, 50, 50)))
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel IPC;
    private javax.swing.JLabel Inst;
    private javax.swing.JLabel L1D;
    private javax.swing.JLabel L1I;
    private javax.swing.JLabel L2D;
    private javax.swing.JLabel L2I;
    private javax.swing.JLabel L3D;
    private javax.swing.JLabel L3I;
    private javax.swing.JPanel Main;
    private javax.swing.JLabel R0;
    private javax.swing.JLabel R1;
    private javax.swing.JLabel R2;
    private javax.swing.JLabel R3;
    private javax.swing.JLabel R4;
    private javax.swing.JLabel R5;
    private javax.swing.JLabel R6;
    private javax.swing.JLabel R7;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JTable jTable1;
    private static javax.swing.JTable jTable6;
    private javax.swing.JLabel noOfCycles;
    // End of variables declaration//GEN-END:variables
}
